package com.hotai.vo.user;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class LoginZhu {
    @NotBlank(message = "手机号不能为空！")
//    @Pattern(regexp = "^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\\d{8}$",message = "手机号码有误！")
    private  String phone;
    private  String code;
    @NotBlank(message = "密码不能为空！")
    @Size(min = 6,max = 20,message = "长度不对")
    @Pattern(regexp ="^[A-Za-z0-9]+$",message = "字母和数字混合，不支持特殊符号")
    private  String password;
    @NotBlank(message = "密码不能为空！")
    private  String password2;

}
